package day05.ti.Digui;

public class Ti01 {  public static void main(String[] args) {
    int jc = jc(5);
    System.out.println(jc);
}

    private static int jc(int a) {
        if (a==1){
            return 1;
        }else {
            return a*jc(a-1);
        }
    }
}
